// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.beatmap-discussion-user-card {
  @_top: beatmap-discussion-user-card;
  @_content-gutter-base: 15px;

  display: flex;
  align-items: flex-start;
  margin-bottom: 5px;
  flex: none;

  @media @desktop {
    margin-bottom: 0;
    margin-right: 10px;
  }

  &__avatar {
    width: @beatmap-discussion--avatar-size;
    height: @beatmap-discussion--avatar-size;
    flex: none;

    .@{_top}--new-reply & {
      margin-bottom: 5px;

      @media @desktop {
        margin-right: 10px;
        margin-bottom: 0;
      }
    }
  }

  &__user {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin: 0 5px;

    @media @desktop {
      min-width: 150px;
      flex: none;
    }
  }

  &__user-badge {
    min-height: 16px;
    margin-top: 2px;
  }

  &__user-link {
    .link-hover({
      color: white;
    });

    display: flex;
    color: white;
    font-size: @font-size--normal-2;
    font-weight: 600;
    max-width: 120px;
  }

  &__user-modding-history-link {
    .link-inverted();
    color: @osu-colour-l1;
    font-size: 10px;
    margin-left: 5px;
  }

  &__user-row {
    display: flex;
    align-items: baseline;
  }

  &__user-stripe {
    align-self: stretch;
    background-color: var(--group-colour, @osu-colour-b5);
    border-radius: 1px;
    flex: none;
    width: 2px;

    .beatmap-discussion-post--discussion & {
      @media @mobile {
        display: none;
      }
    }
  }
}
